{% set visit = get_total_visit(request.state.config.cf_visit) %}
{% if visit %}
    <aside id="visit">
        <h2>联系理货</h2>
        <dl>
            <dt>今天</dt>
            <dd>{{ visit.today|number_format }}</dd>
            <dt>昨天</dt>
            <dd>{{ visit.yesterday|number_format }}</dd>
            <dt>最大值</dt>
            <dd>{{ visit.max|number_format }}</dd>
            <dt>已满</dt>
            <dd>{{ visit.total|number_format }}</dd>
        </dl>
        {% if request.state.is_super_admin %}
            <a href="/admin/visit_list" class="btn_admin btn">
                <i class="fa fa-cog fa-spin fa-fw"></i>
                <span class="blind">经理</span>
            </a>
        {% endif %}
    </aside>
{% endif %}